package com.pigcloud.sop.gatewaycommon.bean;

import lombok.Data;

/**
 *  描述信息:
 * @Author wangfm
 * @Date: 2024/1/2
 */
@Data
public class ServiceDefinition {

    /**
     * 服务名称，对应spring.application.name
     */
    private String serviceId;

    public ServiceDefinition(String serviceId) {
        this.serviceId = serviceId;
    }

    public String fetchServiceIdLowerCase() {
        return serviceId.toLowerCase();
    }
}